package edu.zut.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ConfigurationProperties(prefix = "img")
 * 自动根据配置的前缀+属性去配置文件中自动适配完成属性赋值
 * @Component: 组件  将当前组件交给Spring容器完成自动管理
 */
@ConfigurationProperties(prefix = "img")
@Component
public class Img {

    private String ip;
    private String port;
    private String path;


    @Override
    public String toString() {
        return "Img{" +
                "ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", path='" + path + '\'' +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
